from django.shortcuts import render

# Create your views here.
from rest_framework.generics import ListAPIView,RetrieveAPIView

from Spitslot.models import Spitslots
from Spitslot.serializer import SpitslotSerializer, SpitslotListSerializer


class SpitslotListView(ListAPIView):
    queryset = Spitslots.objects.filter(is_delete= False).order_by('-create_time')
    serializer_class = SpitslotListSerializer


class SpitslotCommentView(RetrieveAPIView):
    serializer_class = SpitslotSerializer
    queryset = Spitslots.objects.all()

